<div class="ma-nav-container">
    <?php if($flag){?>
    <ul id="nav">
        <?php $i=1;$end = sizeof($menu_items);foreach($menu_items as $menu_item){?>
        <li class="<?php echo ($i==0)?'home':'level0 level-top';?>"><a href="" title="Home"><span>Trang chủ</span></a></li>
        <li class="level0 nav-1 level-top"><a href="gioi-thieu.html" class="level-top"><span>Giới thiệu</span></a></li>
        <li class="level0 nav-2 level-top"><a href="dien-thoai.html" class="level-top"><span>Điện thoại</span></a></li>
        <li class="level0 nav-3 level-top"><a href="dich-vu-phan-mem.html" class="level-top"><span>Phần mềm</span></a></li>
        <li class="level0 nav-4 level-top"><a href="huong-dan-mua-hang.html" class="level-top"><span>Hướng dẫn mua hàng</span></a></li>
        <li class="level0 nav-5 level-top"><a href="ban-do.html" class="level-top"><span>Bản đồ</span></a></li>
        <li class="level0 nav-5 level-top"><a href="tin-tuc.html" class="level-top"><span>Tin tức</span></a></li>
        <li class="level0 nav-5 level-top last"><a href="lien-he.html" class="level-top"><span>Liên hệ</span></a></li>
        <?php $i++;}?>
    </ul>
    <?php }?>
</div>